//
//  LoginVM.h
//  WanCaiC8
//
//  Created by tangang on 2018/3/29.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "BaseVM.h"
@interface LoginVM : BaseVM

@property (nonatomic ,assign) int  time;
- (void)getVerificationCode:(NSString *)phone andSuccess:(SuccessBlock)endBlock andContinue:(SuccessBlock)continueBlock;

/**
 * 验证手机号码存在
 * @param phone 验证的手机号
 **/
- (void)validateWithMobile:(NSString *)phone andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 用户注册
 */
- (void)registerWithUserInfo:(NSDictionary *)dict andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 用户登陆
 * @param account 帐号
 * @param password 密码
 */
- (void)loginWithAccount:(NSString *)account andPassword:(NSString *)password andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 忘记密码
 * @param userInfo 修改密码的信息
 */
- (void)forgetPassword:(NSDictionary *)userInfo andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 退出登陆
 */
- (void)outLogin;

+(LoginVM *)manage;
@end
